<%@ page import="de.app.fbc.teams.Verein" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Create Verein</title>         
    </head>
    <body>
        <div class="body">
            <h1>Create Verein</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${vereinInstance}">
            <div class="errors">
                <g:renderErrors bean="${vereinInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:uploadForm name="gruppe" action="save">
                <div class="dialog">
                    <table>
                        <tbody>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="vereinsname">Vereinsname:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:vereinInstance,field:'vereinsname','errors')}">
                                    <input type="text" id="vereinsname" name="vereinsname" value="${fieldValue(bean:vereinInstance,field:'vereinsname')}"/>
                                </td>
                            </tr> 
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="beschreibung">Beschreibung:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:vereinInstance,field:'beschreibung','errors')}">
                                    <input type="text" id="beschreibung" name="beschreibung" value="${fieldValue(bean:vereinInstance,field:'beschreibung')}"/>
                                </td>
                            </tr> 
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="logo">Logo:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:vereinInstance,field:'logo','errors')}">
                                    <input type="file" id="logo" name="logo" value="${fieldValue(bean:vereinInstance,field:'logo')}"/>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="Einstellen" /></span>
                </div>
            </g:uploadForm>
        </div>
    </body>
</html>
